{include file="public/header" /}

<table class="data-list">
	<tbody>
		<tr>
			<th width="70">ID</th>
			<th>名称</th>
			<th width="120">操作</th>
		</tr>
		{volist name="list" id="rs"}
			<tr class="data-{$rs['area_id']}">
				<td>{$rs['area_id']}</td>
				<td>{$rs['name']}</td>
				<td>
					<a class="btn btn-default" href="{:url('index', array('type' => $rs['type'], 'parent_id' => $rs['area_id'], 'up_parent_id' => $rs['parent_id']))}" title="下级">
						<i class="icon-list"></i>
					</a>
					<a class="btn btn-default" href="{:url('edit', array('type' => $rs['type'] - 1, 'area_id' => $rs['area_id'], 'parent_id' => $rs['parent_id']))}" title="修改">
						<i class="icon-edit"></i>
					</a>
					<a class="btn btn-default confirm-opt delete-opt" href="{:url('delete', array('area_id' => $rs['area_id']))}" title="删除">
						<i class="icon-delete"></i>
					</a>
				</td>
			</tr>
		{/volist}
	</tbody>
</table>

<div class="opt-page-box">
	<ul class="button-group">
		<li class="btn bg-default jump" url="{:url('add', array('parent_id' => $parent_id, 'type' => $type))}"><i class="icon-plus"></i>添加</li>
		{gt name="parent_id" value="0"}
			<li class="btn bg-default jump" url="{:url('index', array('parent_id' => $up_parent_id, 'type' => $type - 1))}"><i class="icon-back"></i>上一级</li>
		{/gt}
	</ul>
	{$page}
</div>

{include file="public/footer" /}